PKG_NAME = neon
PKG_VERS = 0.30.2
PKG_EXT = tar.gz
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = http://www.webdav.org/neon
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)

DEPENDS = cross/libxml2 cross/zlib cross/openssl

HOMEPAGE = http://www.webdav.org/neon/
COMMENT  = Neon is an HTTP and WebDAV client library, with a C interface
LICENSE  = LGPL

GNU_CONFIGURE = 1
CONFIGURE_ARGS = --enable-shared --with-libxml2 --with-ssl=openssl --with-zlib XML2_CONFIG=$(STAGING_INSTALL_PREFIX)/bin/xml2-config
POST_INSTALL_TARGET = neon_post_install

include ../../mk/spksrc.cross-cc.mk

.PHONY: neon_post_install
neon_post_install:
	sed -i -e 's|^prefix=$(INSTALL_PREFIX)$$|prefix=$(STAGING_INSTALL_PREFIX)|' $(STAGING_INSTALL_PREFIX)/bin/neon-config
